<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
      <div v-bind:id="id">aa</div>
      <img v-bind:src="imgSrc" alt="">
      <hr>
      <!-- 简写 :属性 -->
      <img :src="imgSrc" alt="">
  </div>
  <script src="./vue.global.js"></script>
  <script>
    const msg2 = '这是js的变量'

    const { createApp } = Vue;
    // 创建 应用实例
    const app = createApp({
      data(){
        return {
          id: 'box',
          imgSrc: 'https://img0.baidu.com/it/u=3594725999,1437276298&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=281'
        }
      }
    })
    // 实例渲染
    app.mount('#app');
  </script>
</body>
</html>